package util;

import java.util.Random;

public class EmailVerifyCodeUtil {
	/**
	 * 返回一个6位，由0~9组成的字符串
	 * @param size
	 * @return
	 */
	public static String getNumber(){
		char[] chars = {'0','1','2','3','4','5','6','7','8','9'};
		String result = "";
		Random rand = new Random();
		for(int i = 0; i < 6; i++){
			result += chars[rand.nextInt(chars.length)];
		}
		return result;
	}
}
